/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ourMessage;

/**
 *
 * @author olga
 * @author adrian
 */
public class FileTransfertConfirmation extends Message {

    private static final long serialVersionUID = -5827489411844610984L;

    private boolean isAccepted;
    private int idDemand;

    public FileTransfertConfirmation(String username, boolean isAccepted, int idDemand) {
        super(username);

        this.isAccepted = isAccepted;
        this.idDemand = idDemand;
    }

    public boolean isAccepted() {
        return isAccepted;
    }

    public void setIsAccepted(boolean isAccepted) {
        this.isAccepted = isAccepted;
    }

    public int getIdDemand() {
        return idDemand;
    }

    public void setIdDemand(int idDemand) {
        this.idDemand = idDemand;
    }

    @Override
    public String toString() {
        return "FileTransfertConfirmation  username=" + login + ", isAccepted=" + isAccepted + ", idDemand=" + idDemand + "]";
    }
}
